var Cache = require('cache-swap');
var util = require('../utils/util');
var fileCache, cacheDirName = 'dcv-tarsier-node', distPath, zipPath;
if (util.isWindows()) { //windows版本
  fileCache = new Cache({
    'cacheDirName': cacheDirName,
    'tmpDir': 'C:\\Documents\\gulp-cache'
  });
  // distPath = '../dcv-web/dcvWeb';//必须是相对路径，一般为dist
    distPath = 'dist';
  // distPath = "../../vue/dcv-web/dcvWeb";
  zipPath = './zip';
} else {
  fileCache = new Cache({
    'cacheDirName': cacheDirName,
    'tmpDir': '../gulp-cache'
  });
  distPath = 'dist';
  zipPath = '/tmp/';
}

var defaultOptions = {
  'name': 'gulp',
  'author': 'jw',
  'private': true,
  'fileCache': fileCache,
  'defaultMaxListeners': 30,
  'isMap': false, //是否压缩源码的map
  'dirs': {
    'map': '../map', //源码map文件地址
    'dev': 'src',
    'entryHtml': 'src/entry/*.html',
    'i18n': 'src/entry/dcv-all.json',
    'i18n_version': 'src/dcv/javascripts/language/version.js',
    'dist': distPath, //必须是相对路径，一般为dist
    'zip': zipPath,
    'framePath': 'frame\\面板\\',
    'frameName': '面板_基础信息',
    'frameAllPath': 'frame\\all-cn-tarsier\\', //可视化包目录
    'frameAllName': 'frameOrigin', //可视化源文件
    'frameAllDestPath': 'frame\\zip', //压缩可视化包存放目录
    // "dist":"dist",
    'unInDirs': [
      '!src/dcv/**/stateMachine/extend/**/*',
      '!src/dcv/**/stateMachine_Source/**/*',
      '!src/dcv/**/stateMachine/docs/**/*',
      '!src/dcv/uinv3DExamples/**/*',
      '!src/dcv/tx/**/*',
      '!src/dcv/**/stateMachine/updateJs/**/*',
      '!src/dcv/**/stateMachine/_init_.js', //不包含状态机
      '!src/dcv/uGeo/projects/**/*', //不包含ugeo/projects下文件
      '!src/dcv/**/*_dev/**/*',
      '!src/dcv/javascripts/**/digger2/**/*',
      '!src/dcv/javascripts/**/Earth_V1/**/*',
      // "!src/dcv/javascripts/**/Earth_V2/**/*",//先放开这个
      '!src/dcv/javascripts/**/moon_V1/**/*',
      '!src/dcv/javascripts/**/bk/*.js',
      '!src/dcv/javascripts/**/*- 副本.js',
      '!src/dcv/javascripts/**/Copy of*.js'
    ],
    'common': {//浏览器和node端都能加载的
      'toolJsArr': [
        'javascripts/uinv.js',
        'javascripts/uinv_util.js',
        'javascripts/3d/base/tools/config_tools.js'
      ],
      'initJsArr': [
        'javascripts/ver.js',
        'javascripts/language/layerpool.js',
        'javascripts/language/version.js'
      ],
      'serverJsArr': [
        'javascripts/server/_init_.js',
        'javascripts/server/uinv-admin-1.0.0.js',
        'javascripts/server/uinv-business-1.0.1.js',
        'javascripts/server/uinv-config-1.0.1.js',
        'javascripts/server/uinv-cosmos-1.0.0.js',
        'javascripts/server/uinv-data-1.0.0.js',
        'javascripts/server/uinv-frameconfig-1.0.0.js',
        'javascripts/server/uinv-gis-1.0.1.js',
        'javascripts/server/uinv-license-1.0.1.js',
        'javascripts/server/uinv-link-1.0.1.js',
        'javascripts/server/uinv-manage-1.0.1.js',
        'javascripts/server/uinv-monitor-1.0.1.js',
        'javascripts/server/uinv-security-1.0.1.js',
        'javascripts/server/uinv-task-1.0.1.js'
      ],
      'u3dJsArr': [
        'javascripts/3d/u3d/u3d.js',
        'javascripts/3d/u3d/u3d_Assist.js',
        'javascripts/3d/u3d/ui-tree.js'
      ],
      't3dJsArr': [
        'javascripts/3d/t3djs/base.js'
      ],
      't3dExJsArr': [
        'javascripts/3d/t3djs/base_ex.js',
        'javascripts/node/invoke.js'
      ],
      'logicUniverseJsArr': [
        'plugins/common/animationTween.js'],
      'configJsArr': [
        'projects/config.js'
      ]
    },
    'browser': {//只在浏览器端加载的
      'pluginsJsArr': [//各个页面都需要用到的
        'plugins/common/bluebird.min.js',
        'plugins/jquery/jquery-1.8.1.min.js',
        'plugins/jquery/jquery-ajax-cache.js',
        'plugins/layer/layer.js'
      ],
      'configJsArr': [
        'projects/config-brow.js'
      ],
      't3dJsArr': [
        'javascripts/browser/plugin_init.js'
      ],
      'chromePluginJsArr': [
        'javascripts/3d/t3djs/chrome-extension-helper.js'
      ],
      'chromeForUserPluginJsArr': [
        'javascripts/3d/t3djs/open-t3d-page.js'
      ],
      'initJsArr': [
        'javascripts/3d/_init_.js'
      ],
      'toolJsArr': ['javascripts/browser/uinv_browser.js'],
      'u3dJsArr': [
        // "javascripts/3d/u3d/ui-index.js",
        // "javascripts/3d/u3d/uinv-cosmos-tree.js"
      ],
      'logicUniverseJsArr': [
        'javascripts/3d/logicuniverse/logicUniverseCombinedViewStyleForHtml.js',
        'javascripts/3d/logicuniverse/logicUniverseCombinedViewListForHtml.js'
      ],
      'uGeoJsArr': [
        'uGeo/version/tarsier.js',
        'uGeo/gisRes/config.js',
        'uGeo/core/gis_conversion.js',
        'uGeo/core/Cesium.js',
        'uGeo/core/earthSphere.js',
        'uGeo/core/earthObject.js',
        'uGeo/core/tile_earthSphere.js',
        'uGeo/core/vector_earthSphere.js',
        'uGeo/core/ReplaceBrow/createVerticesFromQuantizedTerrainMesh.js',
        /*"uGeo/core/ReplaceBrow/upsampleQuantizedTerrainMesh.js",
        "uGeo/core/ReplaceBrow/createVerticesFromHeightmap.js",
        "uGeo/core/ReplaceBrow/all.js",*/
        'uGeo/js/gis_event.js',
        'uGeo/js/editPoint.js',
        'uGeo/js/PopPanel.js',
        'uGeo/js/earthRotateCamera.js',
        'uGeo/js/earthOrbitCamera.js',
        'uGeo/js/gis.js',
        'uGeo/projects/DemoV1.js',
        'uGeo/projects/DemoV2.js',
        'uGeo/projects/DemoV3.js',
        'uGeo/projects/NodeEffectConverter.js'
      ],
      'uwebUtilJsArr': [
        'javascripts/uweb/_init_.js',
        'javascripts/uweb/uweb_util.js',
        'javascripts/uweb/userver_api.js',
        'javascripts/uweb/uweb_layout.js',
        'javascripts/uweb/uinv-ui-util.js',
        'javascripts/uweb/uinv-ui-user.js',
        'javascripts/uweb/uinv-ui-bus.js'
      ],
      'uwebHomeJsArr': [
        'javascripts/uweb/home/_init_.js',
        'javascripts/uweb/home/uweb_controller_init.js',
        'javascripts/uweb/home/uweb_controller_mutex.js',
        'javascripts/uweb/home/uweb_controller_mutexLib.js',
        'javascripts/uweb/home/uweb_controller_registerEvent.js',
        'javascripts/uweb/home/uweb_controller_advsearch.js',
        'javascripts/uweb/home/uweb_controller_deviceIndex.js',
        'javascripts/uweb/home/uweb_controller_exhibitionManage.js', //2014-01-03 演示管理
        'javascripts/uweb/home/uweb_controller_exhibitionAnim.js',
        'javascripts/uweb/home/uweb_controller_exhibitionDoc.js',
        'javascripts/uweb/home/uweb_controller_exhibitionView.js',
        'javascripts/uweb/home/uweb_controller_spaceSearch.js',
        'javascripts/uweb/home/uweb_controller_vm.js',
        'javascripts/uweb/home/uweb_controller_logicUniverse.js',
        'javascripts/uweb/home/uweb_controller_top_spaceSearch.js',
        'javascripts/uweb/home/uweb_controller_top_powerConsumption.js',
        'javascripts/uweb/home/uweb_controller_top_alarm.js',
        'javascripts/uweb/home/uweb_controller_top_addTask.js',
        'javascripts/uweb/home/uweb_controller_top_ppt.js',
        'javascripts/uweb/home/uweb_controller_top_anim.js',
        'javascripts/uweb/home/uweb_controller_top_playSound.js',
        'javascripts/uweb/home/uweb_controller_top_cosmos.js',
        'javascripts/uweb/home/uweb_controller_top_physical.js',
        'javascripts/uweb/home/uweb_controller_shelves_manage.js', //jw 2017.06.26 上下架管理
        'javascripts/uweb/home/uweb_controller_shelves_on.js',
        'javascripts/uweb/home/uweb_controller_shelves_exc.js',
        'javascripts/uweb/home/uweb_controller_cFSM.js',
        //2016-08-10 告警管理 jw
        'javascripts/uweb/home/uweb_controller_cAlarm.js'
      ],
      'devData': 'javascripts/browser/data_brow.js', //浏览器端加载文件列表存储的地址
      'distData': 'js/data_brow.js'//浏览器端加载文件列表存储的地址
    },
    'node': {//是node端的代码
      'pluginJsArr': [
        'plugins/common/bluebird.min.js',
        'plugins/common/webStorage.js',
        'plugins/common/md5.min.js',
        'plugins/common/uuid.js'
      ],
      'u3dJsArr': [
        'javascripts/3d/u3d/ui-index.js'
        // "javascripts/3d/u3d/uinv-cosmos-tree.js"
      ],
      'logicUniverseJsArr': [
        // "plugins/common/md5.min.js",
        // "plugins/common/animationTween.js",
        'javascripts/3d/logicuniverse/state_mos.js',
        'javascripts/3d/logicuniverse/whenenter.js',
        'javascripts/3d/logicuniverse/commonFunction.js',
        'javascripts/3d/logicuniverse/logicUniverseBaseFor3D.js',
        'javascripts/3d/logicuniverse/logicUniverseRootFor3D.js',
        'javascripts/3d/logicuniverse/logicUniverseLayerFor3D.js',
        'javascripts/3d/logicuniverse/logicUniverseNodeFor3D.js',
        'javascripts/3d/logicuniverse/logicUniverseObjBase.js',
        'javascripts/3d/logicuniverse/logicUniverseRoot.js',
        'javascripts/3d/logicuniverse/logicUniverseLayer.js',
        'javascripts/3d/logicuniverse/logicUniverseLayerDrillUp.js',
        'javascripts/3d/logicuniverse/logicUniverseLayerRelation.js',

        'javascripts/3d/logicuniverse/logicUniverseException.js',
        'javascripts/3d/logicuniverse/logicUniverseCombinedViewStyle.js',

        'javascripts/3d/logicuniverse/logicUniverseNodeBase.js',
        'javascripts/3d/logicuniverse/logicUniverseNodeNormal.js',
        'javascripts/3d/logicuniverse/logicUniverseNodeConfigureItem.js',
        'javascripts/3d/logicuniverse/logicUniverseNodeContainer.js',

        'javascripts/3d/logicuniverse/logicUniverseLine.js',
        'javascripts/3d/logicuniverse/logicUniverseLineSameLayer.js',
        'javascripts/3d/logicuniverse/logicUniverseLineDifferentLayer.js',

        'javascripts/3d/logicuniverse/logicUniverseCaptionBase.js',
        'javascripts/3d/logicuniverse/logicUniverseCaptionLayer.js',
        'javascripts/3d/logicuniverse/logicUniverseCaptionNodeBase.js',
        'javascripts/3d/logicuniverse/logicUniverseCaptionNodeNormal.js',
        'javascripts/3d/logicuniverse/logicUniverseCaptionNodeConfigureItem.js',
        'javascripts/3d/logicuniverse/logicUniverseCaptionNodeContainer.js',

        'javascripts/3d/logicuniverse/logicUniverseDataLayer.js',
        'javascripts/3d/logicuniverse/logicUniverseDataLayerFromInterface.js',
        'javascripts/3d/logicuniverse/logicUniverseDataLayerFromFile.js',
        'javascripts/3d/logicuniverse/logicUniverseCombinedViewListConfig.js',
        'javascripts/3d/logicuniverse/logicUniverseCombinedView.js',
        'javascripts/3d/logicuniverse/logicUniverseCombinedViewForDrillUp.js',
        'javascripts/3d/logicuniverse/logicUniverseCombinedViewList.js',
        'javascripts/3d/logicuniverse/logicUniverseSnapshot.js',
        'javascripts/3d/logicuniverse/logicUniverseRoasting.js',
        'javascripts/3d/logicuniverse/whenexit.js'
      ],
      'stateMachineArr': [
        'javascripts/stateMachine/minjs/stateMachineCore.min.js',
        'javascripts/stateMachine/minjs/stateMachineExtend.min.js'
      ],
      'configJsPreArr': [
        'projects/userConfig.js'
      ],
      'configJsArr': [
        'projects/config-node.js'
      ],
      'toolJsArr': [
        'javascripts/node/uinv_node.js'
      ],
      'threeDJsArr': [
        //3d
        'javascripts/3d/userMakerDataVersion.js',
        'javascripts/3d/videoCardInfo.js',
        //base
        'javascripts/3d/base/interface_dependent_t3djs.js',
        'javascripts/3d/base/timer.js',
        'javascripts/3d/base/tools/common_tools.js',
        'javascripts/3d/base/product_lib.js',
        'javascripts/3d/base/pause.js',
        'javascripts/3d/base/input.js',
        'javascripts/3d/base/mat_text.js',
        'javascripts/3d/base/obj_factory.js',
        'javascripts/3d/base/obj_base.js',
        'javascripts/3d/base/obj_base_noNode.js',
        'javascripts/3d/base/obj_placement.js',
        'javascripts/3d/base/obj_manual.js',
        'javascripts/3d/base/obj_billboard.js',
        'javascripts/3d/base/obj_moniterPanel.js',
        'javascripts/3d/base/obj_building.js',
        'javascripts/3d/base/widget_base.js',
        'javascripts/3d/base/widget_lib.js',
        'javascripts/3d/base/widget_menu.js',
        'javascripts/3d/base/widget_menu_rainbow.js',
        'javascripts/3d/base/widget_menu_rainbow_2.js',
        'javascripts/3d/base/modifier_base.js',
        'javascripts/3d/base/modifier_lib.js',
        'javascripts/3d/base/tools/controllerTools.js',
        'javascripts/3d/base/tools/JSRuner.js',
        // "javascripts/3d/base/tools/config_tools.js",
        'javascripts/3d/base/tools/effect_tools.js',
        'javascripts/3d/base/tools/scene_builder.js',
        'javascripts/3d/base/tools/selection_tools.js',
        'javascripts/3d/base/tools/camera_tools.js',
        'javascripts/3d/base/tools/contextMenu_tools.js',
        'javascripts/3d/base/tools/layer_tools.js',
        'javascripts/3d/base/tools/search_tools.js',
        'javascripts/3d/base/tools/monitor_tools.js',
        'javascripts/3d/base/tools/alarm_tools.js',
        'javascripts/3d/base/tools/note_tools.js',
        'javascripts/3d/base/tools/volume_tools.js',
        'javascripts/3d/base/tools/historyTools.js',
        'javascripts/3d/base/widget_miniMap.js',
        'javascripts/3d/base/state_manager.js',
        'javascripts/3d/base/state_base.js',
        'javascripts/3d/base/app.js',
        'javascripts/3d/base/tools/contextMenu_lib.js',
        'javascripts/3d/base/tools/contextMenu_setup.js',
        'javascripts/3d/base/tools/layer_lib.js',
        'javascripts/3d/base/tools/layerGroup_lib.js',
        'javascripts/3d/base/tools/layer_setup.js',
        'javascripts/3d/base/tools/sceneControlTools_lib.js',
        'javascripts/3d/base/tools/sceneControlTools_setup.js',
        'javascripts/3d/base/tools/snapshot_tools.js',
        'javascripts/3d/base/tools/objInfoDebug_tools.js',
        'javascripts/3d/base/tools/snapshot_anim_tools.js',
        //comp
        'javascripts/3d/comp/obj/obj_device.js',
        'javascripts/3d/comp/obj/obj_vm.js',
        'javascripts/3d/comp/obj/obj_cabinet.js',
        'javascripts/3d/comp/obj/obj_rack.js',
        'javascripts/3d/comp/obj/obj_leakWaterLine.js',
        'javascripts/3d/comp/obj/obj_door.js',
        'javascripts/3d/comp/obj/obj_portLinkLine.js',
        'javascripts/3d/comp/tools/alarm_tools_ex.js',
        'javascripts/3d/comp/tools/effect_tools_ex.js',
        'javascripts/3d/comp/tools/selection_tools_ex.js',
        'javascripts/3d/comp/tools/search_tools_ex.js',
        'javascripts/3d/comp/tools/volume_tools_ex.js',
        'javascripts/3d/comp/tools/microVolume_tools.js',
        'javascripts/3d/comp/tools/portLinkLines_tools.js',
        'javascripts/3d/comp/tools/door_tools.js',
        'javascripts/3d/comp/app.js',
        'javascripts/3d/comp/contextMenu_lib.js',
        'javascripts/3d/comp/contextMenu_setup.js',
        'javascripts/3d/comp/layer_lib.js',
        'javascripts/3d/comp/layer_setup.js',
        'javascripts/3d/comp/state/state_comp.js'
      ],
      'frontendConfigManagerJsArr': [
        'javascripts/frontendConfigManager/plug/ztree.js',
        'javascripts/frontendConfigManager/core.js',
        'javascripts/frontendConfigManager/initData.js',
        'javascripts/frontendConfigManager/init.js'
      ],
      //可视化配置专用
      'logicUniverseFor3DJsArr': [
        'javascripts/3d/logicuniverse/logicUniverseBaseFor3D.js',
        'javascripts/3d/logicuniverse/logicUniverseRootFor3D.js',
        'javascripts/3d/logicuniverse/logicUniverseLayerFor3D.js',
        'javascripts/3d/logicuniverse/logicUniverseNodeFor3D.js'
      ],
      'uGeoJsArr': [
        'uGeo/version/tarsier.js',
        'uGeo/gisRes/config.js',
        'uGeo/core/gis_conversion.js',
        'uGeo/core/Cesium-Node.js',
        'uGeo/core/earthSphere.js',
        'uGeo/core/earthObject.js',
        'uGeo/core/tile_earthSphere.js',
        'uGeo/core/vector_earthSphere.js',
        'uGeo/core/ReplaceNode/ArrayBuffer.js',
        'uGeo/core/ReplaceNode/jdataview.js',
        'uGeo/core/ReplaceNode/CesiumTerrainProvider.js',
        'uGeo/core/ReplaceNode/XMLHttpRequest.js',
        'uGeo/core/ReplaceNode/loadWithXhr.js',
        'uGeo/js/gis_event.js',
        'uGeo/js/editPoint.js',
        'uGeo/js/PopPanel.js',
        'uGeo/js/earthRotateCamera.js',
        'uGeo/js/earthOrbitCamera.js',
        'uGeo/js/gis.js',
        'uGeo/projects/DemoV1.js',
        'uGeo/projects/DemoV2.js',
        'uGeo/projects/DemoV3.js',
        'uGeo/projects/NodeEffectConverter.js'
      ],
      'gameInitJsArr': [
        'javascripts/node/game_init.js'
      ],
      'nodeInitJsArr': [
        'javascripts/node/_init_.js'
      ],
      'devData': 'javascripts/node/data_node.js', //node端加载文件列表存储的地址
      'distData': 'js/data_node.js'//node端加载文件列表存储的地址
    },
    'home': {
      'pluginJsArr': [
        'plugins/jquery/jquery.ba-resize.js',
        'plugins/jquery/chosen.jquery.js',
        'plugins/jquery/simplePage.js',
        'plugins/jquery/jstree/jstree.js',
        'plugins/jquery/jquery-ztree/jquery.ztree.core-3.5.js',
        'plugins/jquery/jquery-ztree/jquery.ztree.excheck-3.5.js',
        'plugins/jquery/jquery-ztree/jquery.ztree.exedit-3.5.js',
        'plugins/jquery/select/jquery.input.select.js',
        'plugins/Colorpicke/spectrum.js',
        'plugins/common/handlebars.js',
        'plugins/Timeline/Timeline.js',
        'plugins/common/uuid.js',
        'plugins/datepicker/WdatePicker.js',
        'plugins/soundmanager/script/soundmanager2-jsmin.js',
        'plugins/common/tween.js',
        'plugins/common/animationTween.js',
        'plugins/common/md5.min.js',
        'plugins/common/mock.min.js',
        'plugins/swiper/swiper-3.4.2.min.js',
        'plugins/pager/pager.js',
        'plugins/jquery/shelfTable.js'
      ],
      'cssArr': [
        'plugins/font-awesome-4.2.0/css/font-awesome.css',
        'plugins/Colorpicke/spectrum.css',
        'plugins/Timeline/timeline.css',
        'plugins/swiper/swiper-3.4.2.min.css',
        'plugins/pager/pager.css'
        // "resource/css/base.css",
        // "resource/css/home.css",
        // "resource/css/chosen.css",
        // "resource/css/jsTree_style.css"
      ],
      'appJsArr': [
        'javascripts/uweb/home/app.js'
      ],
      'gisAppJsArr': [
        'uGeo/app.js'
      ]
    },
    'threeDConfig': {
      'pluginJsArr': [
        'plugins/jquery/shade/rotateCircle.js',
        'plugins/jquery/jstree/jstree.js',
        'plugins/jquery/jquery-ztree/jquery.ztree.core-3.5.js',
        'plugins/jquery/jquery-ztree/jquery.ztree.excheck-3.5.js',
        'plugins/jquery/jquery-ztree/jquery.ztree.exedit-3.5.js',
        'plugins/Colorpicke/spectrum.js',
        'plugins/common/handlebars.js'
      ],
      'appJsArr': [
        'javascripts/frontendConfigManager/app.js'
      ],
      'visibleconfigJsArr': [
        'javascripts/frontendConfigManager/visibleconfig.js'
      ],
      'cssArr': [
        'resource/css/style.css',
        'resource/bootstrapNew/css/bootstrap.css',
        // "javascripts/frontendConfigManager/config.css",//jw 2017.04.06 修改为根据语言环境动态加载
        'plugins/jquery/jquery-ztree/demo.css',
        'plugins/jquery/jquery-ztree/metroStyle/metroStyle.css',
        'plugins/Colorpicke/spectrum.css'
      ]
    },
    'portShow': {
      'pluginsJsArr': [
        'plugins/jquery/shade/rotateCircle.js',
        'plugins/common/handlebars.js'
      ],
      'appJsArr': [
        'views/portShow/editModelInfo.js',
        'views/portShow/app.js'
      ],
      'cssArr': [
        'views/portShow/style.css'
      ],
      'gameInitJsArr': [
        'views/portShow/game_init.js'
      ],
      'devNodeData': 'views/portShow/data_node.js', //node端加载文件列表存储的地址
      'distNodeData': 'js/portShow_data_node.js', //node端加载文件列表存储的地址
      'devBrowData': 'views/portShow/data_brow.js', //浏览器端加载文件列表存储的地址
      'distBrowData': 'js/portShow_data_brow.js'//浏览器端加载文件列表存储的地址
    },
    'viewPointSet': {//视角设置
      'pluginsJsArr': [

      ],
      'appJsArr': [
        'views/viewPointSet/app.js'
      ],
      'cssArr': [
        'views/viewPointSet/style.css'
      ]
    },
    'stateMachine': {
      'coreMinJsArr': [
        'minjs/stateMachineCore.min.js'
      ],
      'coreJsArr': [
        'corejs/EDClassLib.js',
        'corejs/EDGetValueLib.js',
        'corejs/EDParamTransitActionLib.js',
        'corejs/EDActionLibParser.js',
        'corejs/EDConditionLibParser.js',
        'corejs/EDReactor.js',
        'corejs/EDFSMLib.js',
        'corejs/EDStepManager.js',
        'corejs/app.js'
      ],
      'jsArr': [
        'extend/EDParamTransitActionLib.js',
        'extend/action/EDActionLib_common.js',
        'extend/action/EDActionLib_cosmos.js',
        'extend/action/EDActionLib_object.js',
        'extend/action/EDActionLib_widget.js',
        'extend/action/EDActionLib_camera.js',
        'extend/action/EDActionLib_tools.js',
        'extend/action/EDActionLib_gis.js',
        'extend/action/EDActionLib_compute.js',
        'extend/action/EDActionLib_line.js',
        'extend/action/EDActionLib_array.js',
        'extend/action/EDActionLib_dictionary.js',
        'extend/condition/EDConditionLib.js',
        'extend/EDActionLib_extend.js'
      ],
      // "appJsArr": [
      //   "app.js"
      // ],
      'cssArr': [
        'plug/Colorpicker/spectrum.css',
        'plug/bootstrap/css/bootstrap.min.css',
        // "plug/bootstrap-table/bootstrap-table.min.css",
        'plug/sweetalert-master/dist/sweetalert2.min.css',
        'plug/bootstrap/css/font-awesome.min.css',
        'css/assist.css',
        'css/modal.css',
        'css/style.css'
      ]
    },
    //状态机公用资源

    //list
    'list': {
      'cssArr': [
        'resource/admin/css/list.css'
      ],
      'pluginsJsArr': [

      ],
      'appJsArr': [
        'javascripts/uweb/admin/list.js'
      ]
    },

    'manager': {
      'cssArr': [
        'resource/admin/css/list.css'
      ],
      'pluginsJsArr': [

      ],
      'appJsArr': [
        'javascripts/uweb/admin/manager.js'
      ]
    },

    'resources': {
      'cssArr': [
        'resource/admin/css/imggrid.css',
        'resource/admin/css/container.css',
        'resource/admin/css/combo.select.css',
        'resource/admin/css/resources.css',
        'resource/admin/css/simple.switch.css',
        'plugins/pager/pager.css',
        'plugins/sweetalert/sweetalert.css'
      ],
      'pluginsJsArr': [
        'plugins/jquery/shade/rotateCircle.js',
        'plugins/jquery/jquery.pagination.js',
        'plugins/jquery/imggrid.js',
        'plugins/jquery/jquery.cookie.js',
        'plugins/jquery/jquery.combo.select.js',
        'plugins/jquery/simple.switch.js',
        'plugins/common/artTemplate.min.js',
        'plugins/pager/pager.js',
        'plugins/sweetalert/sweetalert.min.js',
        'plugins/jquery/jquery.inputmask.bundle.min.js'
      ],
      'appJsArr': [
        'javascripts/uweb/admin/resources.js'
      ]
    },
    'control': {
      'cssArr': [
        'resource/admin/css/container.css',
        'resource/admin/css/dcControl.css',
        'resource/admin/css/imggrid.css',
        'resource/admin/css/combo.select.css'
      ],
      'pluginsJsArr': [
        'plugins/jquery/shade/rotateCircle.js',
        'plugins/jquery/jquery.pagination.js',
        'plugins/jquery/jquery.cookie.js',
        'plugins/jquery/jquery.combo.select.js',
        'plugins/jquery/imggrid.js',
        'plugins/jquery/jquery.inputmask.bundle.min.js'
      ],
      'appJsArr': [
        'javascripts/uweb/admin/dcControl.js'
      ]
    },

    'head': {
      'cssArr': [
        'resource/admin/css/common.css'
      ],
      'jsArr': [
        'javascripts/uweb/admin/head.js'
      ]
    },
    'givTMapping': {
      'cssArr': [
        'resource/admin/css/container.css',
        'resource/admin/css/resources.css',
        'resource/admin/css/combo.select.css'
      ],
      'pluginsJsArr': [
        'plugins/jquery/shade/rotateCircle.js',
        'plugins/jquery/jquery.pagination.js',
        'plugins/jquery/jquery.combo.select.js'
      ],
      'appJsArr': [
        'javascripts/uweb/admin/givTMapping.js'
      ]
    },
    'givList': {
      'cssArr': [
        'resource/admin/css/givList.css',
        'resource/admin/css/combo.select.css'
      ],
      'pluginsJsArr': [
        'plugins/jquery/jquery.combo.select.js'
      ],
      'appJsArr': [
        'javascripts/uweb/admin/givList.js'
      ]
    },

    'blank': {
      'cssArr': [
        'resource/admin/css/blank.css'
      ],
      'pluginsJsArr': [
      ]
    },
    'play': {
      'pluginsJsArr': [

      ],
      'appJsArr': [
        'views/play/app.js'
      ]
    }
  },
  'htmlMinOptions': {
    'removeComments': true, //清除HTML注释
    'collapseWhitespace': false, //压缩HTML
    'collapseBooleanAttributes': true, //省略布尔属性的值 <input checked="true"/> ==> <input />
    'removeEmptyAttributes': true, //删除所有空格作属性值 <input id="" /> ==> <input />
    'removeScriptTypeAttributes': true, //删除<script>的type="text/javascript"
    'removeStyleLinkTypeAttributes': true, //删除<style>和<link>的type="text/css"
    'minifyJS': false, //压缩页面JS
    'minifyCSS': true //压缩页面CSS
  },
  'imageMinOptions': {
    optimizationLevel: 5, //类型：Number  默认：3  取值范围：0-7（优化等级）
    progressive: true, //类型：Boolean 默认：false 无损压缩jpg图片
    interlaced: true, //类型：Boolean 默认：false 隔行扫描gif进行渲染
    multipass: false //类型：Boolean 默认：false 多次优化svg直到完全优化
  }
};
module.exports = defaultOptions;
